package com.cty.service.impl;

import com.cty.mapper.UserMapper;
import com.cty.pojo.User;
import com.cty.service.UserService;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Auther: cty
 * @Date: 2020/3/31 21:37
 * @Description:
 * @version: 1.0
 */
@Service
public class UserServiceImpl implements UserService {
    Logger log = Logger.getLogger(UserServiceImpl.class);

    @Resource
    private UserMapper userMapper;

    @Override
    public User loginValidation(User user) {
        User userV = this.userMapper.selByNamePwd(user);
        log.info("验证结果："+userV);
        return userV;
    }
}
